if (tableau[row].getcardcount() < 14) and ((tableau[row].getcardcount() + extras.count) <= 14) then
if extras.count = 0 then
if (getlist.getlastcard().rankvalue = (tableau[row].getlastcard().rankvalue + 1)) and (getlist.getlastcard().suit = tableau[row].getlastcard().suit) then
equal = 1
currentsel = tableau[row].getlastcard().spnum + 1
godlist = tableau[row]
else
if getlist.getlastcard().suit = tableau[row].getlastcard().suit then
if (getlist.getlastcard().rank = "ace") and (tableau[row].getlastcard().rank = "king") then
equal = 1
currentsel = tableau[row].getlastcard().spnum + 1
godlist = tableau[row]
put getlist.cards[dimpos].rank
put godlist.getlastcard().rank
end if
end if
end if
else
if (getlist.cards[dimpos].rankvalue = (tableau[row].getlastcard().rankvalue + 1)) and (getlist.cards[dimpos].suit = tableau[row].getlastcard().suit) then
equal = 1
currentsel = tableau[row].getlastcard().spnum + 1
godlist = tableau[row]
else
if getlist.cards[dimpos].suit = tableau[row].getlastcard().suit then
if (getlist.cards[dimpos].rank = "ace") and (tableau[row].getlastcard().rank = "king") then